@use '@angular/material' as mat;

@mixin media-color($theme) {
  $config: mat.m2-get-color-config($theme);
  $foreground: map-get($config, foreground);
  $background: map-get($config, background);
  $primary: map-get($config, primary);
  $accent: map-get($config, accent);
  $warn: map-get($config, warn);

  .media-object {
    .meta,
    .media-body > div:not(.title) {
      color: mat.m2-get-color-from-palette($foreground, text, 0.5);
    }
    &.box-animate {
      box-shadow: 0 0 3px rgb(60 72 88 / 15%);
      .icon {
        background: linear-gradient(
          45deg,
          transparent,
          mat.m2-get-color-from-palette($primary, 0.2)
        );
        .mat-icon {
          color: mat.m2-get-color-from-palette($primary);
        }
      }
      a {
        color: mat.m2-get-color-from-palette($foreground, text, 0.75);
        &:hover {
          color: mat.m2-get-color-from-palette($primary);
        }
      }
      &:hover {
        box-shadow: 0 5px 13px
          mat.m2-get-color-from-palette($foreground, divider);
      }
    }
    app-icon {
      background-color: mat.m2-get-color-from-palette($background, status-bar);
      color: mat.m2-get-color-from-palette($foreground, text, 0.7);
    }
  }
}
